using Nop.Core.Domain.Customers;

namespace Nop.Data.Mapping.Customers
{
    public partial class PersonMap : NopEntityTypeConfiguration<Person>
    {
        public PersonMap()
        {
            this.ToTable("Person");
            this.HasKey(c => c.Id);

            this.Property(p => p.Name).IsRequired().HasMaxLength(5);
            this.Property(p => p.BMNSJG).HasMaxLength(50);
            this.Property(p => p.GWMC).HasMaxLength(50);
            this.Property(p => p.TelPhone).HasMaxLength(11);
            this.Property(p => p.SFZH).HasMaxLength(20);
            this.Property(p => p.Birthplace).HasMaxLength(10);
            this.Property(p => p.School).HasMaxLength(50);
            this.Property(p => p.Degree).HasMaxLength(20);
            this.Property(p => p.ZC).HasMaxLength(20);
            this.Property(p => p.JN).HasMaxLength(20);
        }
    }
}
